package com.yhos.platform.oopston.core.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@ApiModel("返回结果")
public class Response<T> implements Serializable {

    /**
     * 处理状态（0：失败; 1：成功）
     */
    @ApiModelProperty(value = "状态")
    private String success = "";

    /**
     * 错误编码（0：正常）
     */
    @ApiModelProperty(value = "错误编码")
    private String ret = "0";

    /**
     * 处理结果
     */
    @ApiModelProperty(value = "消息")
    private String msg = "";

    /**
     * 最终处理时间
     */
    @ApiModelProperty(value = "处理时间")
    private String responseTime = "";

    /**
     * 请求序列号，链路
     */
    @ApiModelProperty(value = "请求序列号")
    private String requestUUID = "";

    /**
     * 返回数据
     */
    @ApiModelProperty(value = "返回结果")
    private T val;

    public Response() {

    }

    public String getSuccess() {
        return success;
    }

    public void setSuccess(String success) {
        this.success = success;
    }

    public String getRet() {
        return ret;
    }

    public void setRet(String ret) {
        this.ret = ret;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(String responseTime) {
        this.responseTime = responseTime;
    }

    public String getRequestUUID() {
        return requestUUID;
    }

    public void setRequestUUID(String requestUUID) {
        this.requestUUID = requestUUID;
    }

    public T getVal() {
        return val;
    }

    public void setVal(T val) {
        this.val = val;
    }

}
